package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysEventTrackingMapper;
import com.ruoyi.system.domain.SysEventTracking;
import com.ruoyi.system.service.ISysEventTrackingService;

/**
 * 统计Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-12
 */
@Service
public class SysEventTrackingServiceImpl implements ISysEventTrackingService 
{
    @Autowired
    private SysEventTrackingMapper sysEventTrackingMapper;

    /**
     * 查询统计
     * 
     * @param id 统计主键
     * @return 统计
     */
    @Override
    public SysEventTracking selectSysEventTrackingById(Long id)
    {
        return sysEventTrackingMapper.selectSysEventTrackingById(id);
    }

    @Override
    public SysEventTracking getEventTrackingByTablesId(String tables, String tablesId) {
        return sysEventTrackingMapper.getEventTrackingByTablesId(tables,tablesId);
    }

    /**
     * 查询统计列表
     * 
     * @param sysEventTracking 统计
     * @return 统计
     */
    @Override
    public List<SysEventTracking> selectSysEventTrackingList(SysEventTracking sysEventTracking)
    {
        return sysEventTrackingMapper.selectSysEventTrackingList(sysEventTracking);
    }

    /**
     * 新增统计
     * 
     * @param sysEventTracking 统计
     * @return 结果
     */
    @Override
    public int insertSysEventTracking(SysEventTracking sysEventTracking)
    {
        return sysEventTrackingMapper.insertSysEventTracking(sysEventTracking);
    }

    /**
     * 修改统计
     * 
     * @param sysEventTracking 统计
     * @return 结果
     */
    @Override
    public int updateSysEventTracking(SysEventTracking sysEventTracking)
    {
        return sysEventTrackingMapper.updateSysEventTracking(sysEventTracking);
    }

    /**
     * 批量删除统计
     * 
     * @param ids 需要删除的统计主键
     * @return 结果
     */
    @Override
    public int deleteSysEventTrackingByIds(Long[] ids)
    {
        return sysEventTrackingMapper.deleteSysEventTrackingByIds(ids);
    }

    /**
     * 删除统计信息
     * 
     * @param id 统计主键
     * @return 结果
     */
    @Override
    public int deleteSysEventTrackingById(Long id)
    {
        return sysEventTrackingMapper.deleteSysEventTrackingById(id);
    }
}
